package models;
import java.util.ArrayList;
import java.util.Date;

import siena.Generator;
import siena.Id;
import siena.Index;
import siena.NotNull;


public class Customized {

	@Id(Generator.AUTO_INCREMENT)
	private Long id;
	@Index("event_index")
	private Event event;
	@NotNull
	private String name;
	private static int customizedId = 3;
	private ArrayList<String>fieldType;
	private ArrayList<String>fieldContent;
	private ArrayList<String>fieldTitle;
	private Date created;
	private Date modified;
	
	public Customized(String name){
		this.name = name;
		customizedId++;
		this.fieldType = new ArrayList<String>();
		this.fieldContent = new ArrayList<String>();
		this.fieldTitle = new ArrayList<String>();
		this.created = new Date();
		this.modified = created;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static int getCustomizedId() {
		return customizedId;
	}

	public static void setCustomizedId(int customizedId) {
		Customized.customizedId = customizedId;
	}

	public ArrayList<String> getFieldType() {
		return fieldType;
	}

	public void setFieldType(ArrayList<String> fieldType) {
		this.fieldType = fieldType;
	}

	public ArrayList<String> getFieldContent() {
		return fieldContent;
	}

	public void setFieldContent(ArrayList<String> fieldContent) {
		this.fieldContent = fieldContent;
	}

	public ArrayList<String> getFieldTitle() {
		return fieldTitle;
	}

	public void setFieldTitle(ArrayList<String> fieldTitle) {
		this.fieldTitle = fieldTitle;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}
}
